/* 整体样式 */
        body {
            font-family: "Microsoft YaHei", sans-serif;
            background-color: #f4f4f4;
            max-width: 800px;
            margin: 0 auto;
            padding: 20px;
            color: #222;
        }
        
        /* 评论容器 */
        .comment-section {
            background-color: #fff;
            border-radius: 4px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
            padding: 20px;
            margin-bottom: 30px;
        }
        
        /* 单个评论 */
        .comment {
            padding: 15px 0;
            border-bottom: 1px solid #eee;
            position: relative;
            /* background: #000; */
            display: flex;
        }
        
        /* 头像区域 */
        .avatar-container {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
        }
        
        .avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            margin-right: 12px;
            border: 1px solid #eee;
        }
        
        /* 用户信息 */
        .user-info {
            display: flex;
            align-items: center;
        }
        
        .username {
            font-size: 14px;
            font-weight: 600;
            margin-right: 8px;
            color: #6d757a;
        }
        
        .level {
            display: inline-block;
            width: 32px;
            height: 14px;
            line-height: 14px;
            text-align: center;
            background: linear-gradient(to right, #74c9f1, #b8e6ff);
            border-radius: 2px;
            font-size: 10px;
            color: white;
            margin-right: 6px;
        }
        
        /* 评论内容 */
        .content {
            font-size: 14px;
            line-height: 1.7;
            margin-left: 52px;
            margin-bottom: 10px;
            color: #333;
        }
        
        /* 操作区域 */
        .actions {
            display: flex;
            margin-left: 52px;
            font-size: 12px;
            color: #99a2aa;
        }
        
        .action-item {
            margin-right: 20px;
            cursor: pointer;
            transition: color 0.2s;
        }
        
        .action-item:hover {
            color: #00a1d6;
        }
        
        .time {
            margin-right: 20px;
        }
        
        /* 点赞按钮 */
        .like {
            position: relative;
            padding-left: 18px;
        }
        
        /* 回复区域 */
        .replies {
            margin-left: 52px;
            margin-top: 15px;
            background-color: #f9f9fa;
            border-radius: 4px;
            padding: 10px;
        }
        
        /* 发表评论区域 */
        .input-area {
            display: flex;
            margin-top: 20px;
        }
        
        .input-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            margin-right: 12px;
            border: 1px solid #eee;
        }
        
        .comment-input {
            flex: 1;
            height: 80px;
            padding: 10px;
            border: 1px solid #e3e5e7;
            border-radius: 4px;
            resize: vertical;
            font-size: 14px;
        }
        
        .submit-btn {
            height: 40px;
            margin:20px;
            margin-left: 10px;
            background-color: #00a1d6;
            color: white;
            border: none;
            border-radius: 4px;
            padding: 0 20px;
            cursor: pointer;
            transition: background-color 0.2s;
        }
        
        .submit-btn:hover {
            background-color: #0087b4;
        }

        /* 基础输入框样式 */
input[type="text"] {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
  width: 100%; /* 根据布局调整 */
  transition: border-color 0.3s;
}

/* 聚焦状态 */
input[type="text"]:focus {
  border-color: #4285f4;
  outline: none;
  box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

/* 导航容器 */
/* 标签容器样式 */
.tabs {
  display: flex;
  position: relative; /* 指示器定位基准 */
  border-bottom: 1px solid #eaeaea; /* 底部边框线 */
  margin-bottom: 20px;
  padding-bottom: 4px; /* 为指示器留出空间 */
}

/* 单个标签项样式 */
.nav-item {
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
  color: #666;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2; /* 确保在指示器上方 */
  margin-right: 10px;
}

/* 鼠标悬停效果 */
.nav-item:hover {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.05);
  border-radius: 4px;
}

/* 活动标签样式 */
.nav-item.active {
  color: #2563eb;
  font-weight: 500;
}

/* 动态指示器 - 参考引用[1] */
.tabs::after {
  content: '';
  position: absolute;
  bottom: 0;
  height: 3px;
  background: #3b82f6; /* 指示器颜色 */
  border-radius: 3px;
  transition: all 0.3s ease;
  z-index: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .tabs {
    overflow-x: auto;
    padding-bottom: 8px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  
  .tabs::-webkit-scrollbar {
    display: none;
  }
  
  .nav-item {
    padding: 8px 15px;
    font-size: 14px;
    flex-shrink: 0;
  }
}

/* 动画优化 - 参考引用[2] */
.tabs {
  will-change: transform;
}

/* 用户信息容器 */
.user-info {
  display: flex;      /* 关键属性 */
  align-items: center; /* 垂直居中 */
  gap: 8px;            /* 头像昵称间距 */
}

/* 头像样式 */
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

/* 昵称文本 */
.user-nickname {
  font-size: 14px;
  font-weight: 500;
}

.content button {
  background: #f44336; /* 警示色 */
  color: white;
  border: none;
  border-radius: 3px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
  margin-left: 10px; /* 与点赞数间距 */
  transition: opacity 0.3s;
}

.content button:hover {
  opacity: 0.9; /* 悬停效果 */
}
